<?php
/**
 * lsys task
 * @author     Lonely <shan.liu@msn.com>
 * @copyright  (c) 2017 Lonely <shan.liu@msn.com>
 * @license    http://www.apache.org/licenses/LICENSE-2.0
 */
//注意,务必最先引入
if(PHP_SAPI!='cli')die("plase run in cli\n");
define("LSYS_CRON_RUNER_FORK", DIRECTORY_SEPARATOR != '\\'&&function_exists('pcntl_fork'));
if(LSYS_CRON_RUNER_FORK){
	runer_frok:
	$pid = pcntl_fork();
	if ($pid == -1) die(pcntl_get_last_error());
	else if ($pid) {
		unset($pid);
		pcntl_wait($status,WUNTRACED);
		goto runer_frok;
	}
}